Ext.define('IAG.model.LoginStatus', {
    extend: 'Ext.data.Model',
    fields: [{name:'loggedIn',type:'boolean'}, 'username','message'],
    proxy: {
        type: 'rest',
        url: iag_constants.login_url,
        reader: {
            type: 'json',
            root: 'LoginStatus',
            successProperty: 'loggedIn'
        }
    }
});